import React from 'react';
import BaseForm from '../baseForm/index'
import { Modal } from 'antd'

export default class BaseModal extends React.Component {
  state = { visible: true };

  showModal = () => {
    this.setState({
      visible: true,
    });
  };

  handleOk = e => {
    console.log(e);
    this.setState({
      visible: false,
    });
  };
  onFinish(val) {
    console.log(val, 'val---val')
  }
  handleCancel = e => {
    console.log(e);
    this.setState({
      visible: false,
    });
  };

  render() {
    return (
      <div>
        <Modal
          title="Basic Modal"
          visible={this.props.isModal}
          onOk={this.handleOk}
          onCancel={this.handleCancel}
        >
          <BaseForm></BaseForm>
        </Modal>
      </div>
    );
  }
}
